import IRolePageForm from '@/model/form/role/IRolePageForm'
import IPageVO from '@/model/vo/common/IPageVO'
import IResVO from '@/model/vo/common/IResVO'
import IRoleVO from '@/model/vo/role/IRoleVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 分页排序查询：角色
export default function rolePageApi(form: IRolePageForm) {
  return $http.post<
    IResVO,
    AxiosResponse<IResVO<IPageVO<IRoleVO>>>,
    IRolePageForm
  >('/role/page', form)
}
